import { ResponseData } from '../interfaces/result.interface'
export const resdata = (code, message, result?): ResponseData => {
  return { code, message, result }
}

export const resSuccess = (message: string, result?: any): ResponseData => {
  return resdata(0, message, result)
}

export const resError = (code, message): ResponseData => {
  return resdata(code, message)
}
